<?php
/*
 * 1626cms 共用配置文件
 * ============================================================================
 * 版權所有: 1626網絡，并保留所有權利。
 * 網站地址: http://www.1626.com；
 * ----------------------------------------------------------------------------
 * 這不是一個自由軟件！您只能在不用于商業目的的前提下對程序代碼進行修改和
 * 使用；不允許對程序代碼以任何形式任何目的的再發布。
 * ============================================================================
 */
if(!defined('IN_QISHI'))
{
	die('Access Denied!');
}
error_reporting(E_ERROR);
session_start();
//header("Cache-control: private");
define('QISHI_ROOT_PATH', str_replace('include/common.inc.php', '', str_replace('\\', '/', __FILE__)));
require_once(QISHI_ROOT_PATH.'data/config.php');
header("Content-Type:text/html;charset=".QISHI_CHARSET);
require_once(QISHI_ROOT_PATH.'include/common.fun.php');
if (!get_magic_quotes_gpc())
{if (!empty($_GET))
{
	$_GET  = addslashes_deep($_GET);
}
if (!empty($_POST))
{
	$_POST = addslashes_deep($_POST);
}
$_COOKIE   = addslashes_deep($_COOKIE);
$_REQUEST  = addslashes_deep($_REQUEST);
}
PHP_VERSION > '5.1'?date_default_timezone_set("PRC"):'';
$timestamp = time();
$online_ip=getip();
$_CFG=get_cache('config');
$_CFG['version']=QISHI_VERSION;
$_CFG['site_template']=$_CFG['site_dir'].'templates/'.$_CFG['template_dir'];
$_CFG['web_logo']=$_CFG['web_logo']?$_CFG['web_logo']:'logo.gif';
$_CFG['upfiles_dir']=$_CFG['site_dir']."data/".$_CFG['updir_images']."/";//圖片上傳目錄
$_CFG['thumb_dir']=$_CFG['site_dir']."data/".$_CFG['updir_thumb']."/";//縮略圖目錄
$_CFG['certificate_dir']=$_CFG['site_dir']."data/".$_CFG['updir_certificate']."/";//營業執照存放目錄
$_CFG['attachment_dir']=$_CFG['site_dir']."data/attachment/";//營業執照存放目錄
$_CFG['resume_photo_dir']=$_CFG['site_dir']."data/".$_CFG['resume_photo_dir']."/";//簡歷照片存放目錄
$_CFG['resume_photo_dir_thumb']=$_CFG['site_dir']."data/".$_CFG['resume_photo_dir_thumb']."/";//簡歷照片縮略圖片
$_CFG['user_url']=url_rewrite('user');//會員中心鏈接地址
require_once(QISHI_ROOT_PATH.'include/Smarty.inc.php');
$cacheperiod=get_cache('cacheperiod');
if ($cacheperiod['caching']=="1") timing_clear_cache($cacheperiod['timing']);
$_CFG['isclose']?($smarty->assign('info',$_CFG['close_reason']=(!$_CFG['close_reason']?'站點暫時關閉...':$_CFG['close_reason']))).($smarty->display('warning.htm')).(exit):'';
if ($_CFG['filter_ip'] && check_word($_CFG['filter_ip'],$online_ip))
{
	$smarty->assign('info',$_CFG['filter_ip_tips']);
	$smarty->display('warning.htm');
	exit();
}
?>
